<template>
    <div>
        <a-modal
            v-model:visible="visible"
            title="查看"
            @ok="handleOk"
            @cancel="visible = false"
            :maskClosable="false"
            class="study-add-edit-modal"
            :width="700"
            :footer="null"
            >
            <Video :src="src" :second="3" :width="650" style=""/>
            <!-- <div style="
                display: flex; justify-content: flex-end;
                margin-top: 20px; width: 100%;
                background-color: #fff;">
                <a-button @click="visible = false">关闭</a-button>
            </div> -->
        </a-modal>
    </div>
</template>
<script>
import Video from '@/components/video/index.vue'
export default {
    components: {
        Video,
    },
    data() {
        return {
            visible: false,
            // src: 'http://vjs.zencdn.net/v/oceans.mp4',
            src: '',
        }
    },
    methods: {
        getSrc(val){
            this.src = val
        },
        handleOk(){}
    },
}
</script>
